package com.nbgroup.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-10-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("clue")
@ApiModel(value="Clue对象", description="")
public class Clue implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "渠道来源")
    private Integer channel;

    @ApiModelProperty(value = "活动信息")
    private Long activityId;

    @ApiModelProperty(value = "客户姓名")
    private String name;

    @ApiModelProperty(value = "客户性别")
    private Integer sex;

    @ApiModelProperty(value = "客户年龄")
    private Integer age;

    @ApiModelProperty(value = "客户微信")
    private String weixin;

    @ApiModelProperty(value = "客户微信")
    private String qq;

    @ApiModelProperty(value = "所属部门")
    private Long deptId;

    @ApiModelProperty(value = "所属员工的id")
    private Long ownerId;

    @ApiModelProperty(value = "所属员工名称")
    private String ownerName;

    @ApiModelProperty(value = "分配任务的时间")
    private LocalDateTime ownerTime;

    @ApiModelProperty(value = "线索状态")
    private Integer status;

    @ApiModelProperty(value = "线索ID")
    private String clueId;

    @ApiModelProperty(value = "创建人id")
    @TableField(exist = false)
    private Long createUserId;

    @ApiModelProperty(value = "意向等级")
    private Integer level;

    @ApiModelProperty(value = "分配者姓名")
    private String assignBy;

    @ApiModelProperty(value = "创建者姓名")
    private String createBy;

    @ApiModelProperty(value = "下次跟进时间")
    private LocalDateTime nextTime;

    @ApiModelProperty(value = "意向学科")
    private Long subjectId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-ddTHH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.UPDATE)
    @DateTimeFormat(pattern = "yyyy-MM-ddTHH:mm:ss")
    private LocalDateTime updateTime;


}
